Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(android): handle aspect ratio for rotated videos #4000

Conversation

moskalakamil
Copy link
Member

Summary

Adjust aspect ratio handling for rotated videos

Closes #3929

Motivation

In certain cases, the height and width of videos were not adjusting correctly with rotation. This PR addresses this issue by properly handling aspect ratio adjustments based on rotation angles.

Changes

Modified logic to switch height and width when the rotation angle is 90 or 270 degrees.

Test plan

  1. Run the example video with the repeat mode flag from the following URL.
  2. Verify that the aspect ratio is correctly adjusted when the video rotates during playback.

@KrzysztofMoch KrzysztofMoch merged commit 0a55ace into TheWidlarzGroup:master Jul 15, 2024
3 checks passed
@nicolaosm
Copy link

This issue is still happening on my end. We're on 6.5.0 and when we rotate on android the aspect ratio is messed up.

@freeboub
Copy link
Collaborator

freeboub commented Sep 8, 2024

This issue is still happening on my end. We're on 6.5.0 and when we rotate on android the aspect ratio is messed up.

Can you provide a sample please ? Maybe follow up on a dedicated ticket ..

@nicolaosm
Copy link

Figured its from my project. Should be working fine in the library. Thanks @freeboub

@tamdvyounetgroup
Copy link

I found the problem. The solution is.
Screenshot 2024-09-24 at 14 50 31

@freeboub
Copy link
Collaborator

@tamdvyounetgroup A PR is welcome, thank you !

@freeboub
Copy link
Collaborator

freeboub commented Oct 5, 2024

@tamdvyounetgroup I missed to thank you for the patch, it has been integrated in last release !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: ResizeMode does not apply after the second play onwards when props repeat true
5 participants